package com.construction.api.service;

import com.construction.api.domain.dto.SysUserDTO;
import com.construction.api.domain.vo.TokenVO;

/**
 * @author dybin
 * @Date: 2021/7/3 16:05
 */
public interface LoginService {

    /**
     * 登录
     * @param sysUserDTO
     * @return
     */
    TokenVO login(SysUserDTO sysUserDTO);

    /**
     * 刷新token
     * @param oldToken
     * @return
     */
    TokenVO refresh(String oldToken);
    /**
     * 密码验证
     * @param rawPassword
     * @param encodedPassword
     * @return
     */
    Boolean validatePassword(String rawPassword, String encodedPassword);
}
